:root {
    --primary-color: #009688;
    --secondary-color: #2F4056;
    --accent-color: #1E9FFF;
    --light-gray: #f5f7fa;
    --dark-gray: #393D49;
    --border-radius: 8px;
    --box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f0f2f5;
    background-image: url('../images/background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 全局组件样式 */
.layui-table th,
.layui-form-label,
.layui-btn {
    font-weight: 500;
}

.layui-table td {
    font-size: 13px;
}

.layui-btn {
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.layui-btn-primary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.layui-form-select dl dd.layui-this {
    background-color: var(--primary-color);
}

.layui-form-checked[lay-skin="primary"] i {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.layui-tab-title li {
    font-weight: 500;
}

.layui-tab-title.layui-this {
    color: var(--primary-color);
}

.layui-tab-title.layui-this:after {
    border-bottom: 2px solid var(--primary-color);
}

/* 页面结构样式 */
.header-container {
    background-color: #ffffff;
    padding: 15px 30px;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.header-logo i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 10px;
}

.header-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.header-info {
    color: #666;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.logout-btn {
    background-color: #ff5722;
    color: white;
}

.logout-btn:hover {
    background-color: #d84a1d;
}

.content-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* 表格样式优化 */
.layui-table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.layui-table thead tr {
    background-color: #f8f9fa;
}

.layui-table th {
    font-weight: 600;
    color: var(--secondary-color);
}

.layui-table tbody tr:hover {
    background-color: #f5f8ff;
}

/* 统计信息样式 */
.statistics-area {
    background: #f8f8f8;
    border-radius: 4px;
}

.statistics-container {
    padding: 15px 20px;
    background-color: #f0f2f5;
    border-radius: var(--border-radius);
    margin-top: 20px;
    font-weight: 500;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.statistics-item {
    display: flex;
    align-items: center;
}

.statistics-item i {
    margin-right: 8px;
    color: var(--primary-color);
}

.statistics-value {
    font-weight: 600;
    color: #ff5722;
    margin-left: 5px;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .header-container {
        flex-direction: column;
        padding: 15px;
    }

    .header-left, .header-right {
        width: 100%;
        justify-content: center;
    }

    .header-logo {
        border-right: none;
        margin-right: 0;
        padding-right: 0;
        margin-bottom: 10px;
    }

    .user-info {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 768px) {
    .content-container {
        margin: 10px;
        padding: 15px;
    }

    .section-title {
        font-size: 18px;
    }

    .statistics-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .statistics-item {
        margin-bottom: 10px;
    }
}
